<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> <%@ taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core" %>

<h2>list</h2>

<button>
  <a href="/user/add">添加</a>
</button>
<table>
  <tr>
    <th>编号</th>
    <th>姓名</th>
    <th>密码</th>
    <th>详细</th>
    <th>删除</th>
  </tr>

  <c:forEach items="${list}" var="item">
    <tr>
      <td>${item.id}</td>
      <td>${item.name}</td>
      <td>${item.password}</td>
      <td><a href="/user/detail?id=${item.id}">详细</a></td>
      <td><a href="/user/update?id=${item.id}">修改</a></td>
      <td><a href="/user/delete?id=${item.id}">删除</a></td>
    </tr>
  </c:forEach>
</table>
